using UnityEngine;

namespace Exploder
{
	public class Example : MonoBehaviour
	{
		public ExploderObject Exploder;

		public void ExplodeObject(GameObject obj)
		{
			Exploder.ExplodeObject(obj, OnExplosion);
		}

		private void OnExplosion(float time, ExploderObject.ExplosionState state)
		{
			if (state != ExploderObject.ExplosionState.ExplosionFinished)
			{
			}
		}

		private void CrackAndExplodeObject(GameObject obj)
		{
			Exploder.CrackObject(obj, OnCracked);
		}

		private void OnCracked()
		{
			Exploder.ExplodeCracked(OnExplosion);
		}
	}
}
